package cate.game.res.hoard.msg;

import cate.common.util.GameResult;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBHoard;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "碎片合成/升星 の 请求")
public class HoardComposeReq implements MsgInput {
    @NoteField("原型ID")
    public int tid;


    @Override
    public void execute(GameBody game, ClientContext cc) {
        GameResult<Void> r = cc.getRole().getRes().hoard.compose(tid);
        game.notice.message(cc.getRole(), r, true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBHoard.COMPOSE_REQ;
    }
}
